package com.xiaoyu.awakening.ai.evaluation.feign;

import com.xiaoyu.awakening.ai.evaluation.dto.EvalDataSetGenerateContext;
import com.xiaoyu.awakening.common.core.dto.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * 底层评测引擎服务
 *
 * @author wangxiaoyu
 * @date 2025/8/21 09:47
 * @since v1.0
 */
@FeignClient(value = "alpha-rag-eval-python")
public interface RagEvalProvider {
    /**
     * rag 单轮对话评测
     *
     * @param request 评测请求
     */
    @PostMapping("/ragas_python/eval_single")
    Result<String> eval(@RequestHeader("Token") String token, @RequestBody EvalDataSetGenerateContext request);
}
